package com.gnerv.sylvanas.business.manage.model.bo;

import com.gnerv.sylvanas.business.manage.model.entity.Account;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class AccountBO {

    private String ukId;
    private String username;
    private String password;
    private String status;
    private Integer sort;

    public Account toAccount() {
        Account account = new Account();
        BeanUtils.copyProperties(this, account);
        account.setGmtCreate();
        account.setGmtModified();
        return account;
    }

}